<?php

$rootdir = './';

include_once('functions/session.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>Chargement</title>
    <link href="skin/style.css" rel="stylesheet" media="screen" type="text/css" title="style" />
	<link href="skin/style_formulaire_inscription.css" rel="stylesheet" media="screen" type="text/css" title="style" />
	<link href="skin/style_formulaire_connexion.css" rel="stylesheet" media="screen" type="text/css" title="style" />
	<link href="skin/style_collection.css" rel="stylesheet" media="screen" type="text/css" title="style" />
	<link href="favicon.ico" type="image/x-icon" rel="icon" />
	<script type="text/javascript" src="js/audio.js"></script>
	<script type="text/javascript" src="js/swfobject.js"></script>
	<script type="text/javascript" src="js/iframe.js"></script>
	<script type="text/javascript" src="js/ajax.js"></script>
	<script type="text/javascript" src="js/site.js"></script>
	<script type="text/javascript" src="js/fenetre.js"></script>
	<script type="text/javascript" src="js/formulaire_inscription.js"></script>
	<script type="text/javascript" src="js/collection.js"></script>
</head>

<body>
	<div id="globalContainer">
		<div id="img_top">
		</div>
		<div id="navbar">
			<div id="bouton_homme"><a href="cadre_galery.php?genre=homme" target="iframe"></a></div>
			<div id="bouton_femme"><a href="cadre_galery.php?genre=femme" target="iframe"></a></div>
			<div id="bouton_collection"><a href="cadre_collection.php" target="iframe"></a></div>
			<div id="bouton_panier"><a href="cadre_panier.php" target="iframe"></a></div>
			<div id="bouton_compte" onclick="OuvrirPanneauCompte();"></div>
			<div id="divnumberitemspanier"></div>
		</div>
		
		<div id="lecture" onclick="play();" onmouseover="AfficherLecteur(1);" onmouseout="AfficherLecteur(0);"></div>
		<div id="lecteur" onmouseover="AfficherLecteur(1);" onmouseout="AfficherLecteur(0);">
			<object type="application/x-shockwave-flash" data="audio/dewplayer-playlist.swf" width="240" height="200" id="dewplayer" name="dewplayer">
			<param name="wmode" value="transparent" />
			<param name="movie" value="audio/dewplayer-playlist.swf" />
			<param name="flashvars" value="showtime=true&autoreplay=true&xml=audio/playlist.xml&javascript=on" />
			</object>
		</div>
		
		<?php
			if(isset($_GET['pageid']))
				$src = '';
			else
				$src = 'src="cadre_galery.php"';
		?>
		
		<iframe id="page" width="1020" height="5000" <?php echo $src; ?> name="iframe" onload="setTimeout('AdjustHeight(0)', 100);">Votre navigateur ne gère pas les Iframes.</iframe>
		<div id="fenetre-bg" onclick="FermerFenetre();"></div>
		<div id="fenetre-content">
			<div id="fenetre"></div>
			<a id="fermer-fenetre" onclick="FermerFenetre();">×</a>
		</div>
		
		<div id="footer">
			<a href="http://www.facebook.com/DSNTEXST" id="footer-lien-facebook"></a>
			<a id="footer-lien-twitter"></a>
			<a id="footer-lien-rss"></a>
			<a id="footer-lien-vimeo"></a>
			<a id="footer-lien-apropos"></a>
			<a id="footer-lien-contacts-ensavoirplus" onclick="OuvrirContactsEnsavoirplus();"></a>
			<a id="footer-lien-newsletter"></a>
			<a id="footer-lien-credits" onclick="OuvrirCredits();"></a>
			<a id="footer-lien-conditionsvente" href="cadre_cgv.php" target="iframe"></a>
			<a id="footer-lien-livraison" onclick="OuvrirLivraison();"></a>
			<a id="footer-lien-retoursechanges" onclick="OuvrirRetoursechanges();"></a>
			<a id="footer-lien-modespaiement" onclick="OuvrirModespaiement();"></a>
			<a id="footer-lien-contacts-presse"></a>
		</div>
	
	<script>
		var Connected = false;
	
		CheckConnected();
		UptdateNumberItemsPanier();
		
		function FermerFenetre()
		{
			Fenetre = document.getElementById("fenetre-content");
			FenetreBG = document.getElementById("fenetre-bg");
			Fenetre.style.visibility = 'hidden';
			FenetreBG.style.display = 'none';
		}

<?php

	if(isset($_GET['pageid']))
	{
		if(isset($_GET['stringparams']))
		{
			if(isset($_GET['token']))
			{
				if(isset($_GET['PayerID']))
					echo '		LoadContent(' . $_GET['pageid'] . ', \'?' . urldecode($_GET['stringparams']) . '&token=' . $_GET['token'] . '&PayerID=' . $_GET['PayerID'] . '\');';
				else
					echo '		LoadContent(' . $_GET['pageid'] . ', \'?' . urldecode($_GET['stringparams']) . '&token=' . $_GET['token'] . '\');';
			}
			else if(isset($_GET['PayerID']))
				echo '		LoadContent(' . $_GET['pageid'] . ', \'?' . urldecode($_GET['stringparams']) . '&PayerID=' . $_GET['PayerID'] . '\');';
			else
				echo '		LoadContent(' . $_GET['pageid'] . ', \'?' . urldecode($_GET['stringparams']) . '\');';
		}
		else
			echo '		LoadContent(' . $_GET['pageid'] . ', \'\');';
	}

?>
	</script>
</body>
</html>